Runs every frame, fixed to the screen, before Draw GUI - a natural place for a HUD backdrop panel. Everything drawn in it is on the screen layer: it counts from the screen’s top-left pixel, never scrolls with the camera, and sits on top of the room. Running earlier does not by itself draw behind Draw GUI - depth decides that.
draw_gui_begin: fires every frame, fixed to the screen, before Draw GUIRuns every frame, fixed to the screen, right before Draw GUI - the same "one more event either side" shape Draw Begin already gives world-space drawing. A natural place for a HUD's own backdrop panel, drawn once before the rest of the HUD. Like Draw GUI, everything drawn here is on the screen layer: (0, 0) is the top-left pixel of the screen, and it never scrolls with the camera.
Worth knowing before you lean on it: running earlier is not, by itself, what puts this event's content behind Draw GUI's. Event order decides when a project's own code runs each frame - it is a separate thing from what actually decides on-screen stacking, which is bg_priority and depth. Every Draw GUI draw already shares one front-most layer (bg_priority's own "GUI content is always in front" section), so it is depth that settles which of two overlapping GUI draws wins - text included, draw_text/draw_text_warped read it exactly like draw_rect/draw_rect_fill do. Give the backdrop a higher depth than the content on top of it, and it stays behind regardless of which event drew which.
draw_rect_fill(0, 144, 240, 16, COLOR_BLACK);Paints a solid black bar along the bottom of the screen (240 wide and 16 tall, with its top-left corner at (0, 144), counted from the screen's top-left pixel), before the rest of this instance's own HUD draws in Draw GUI - a simple HUD backdrop. Give it a higher depth than whatever draws on top of it if something else in the project also draws through this same screen area, so the backdrop reliably stays behind it rather than relying on running first.